package org.jing.core.thread;

import org.jing.core.lang.BaseConfiguration;
import org.jing.core.lang.data.Carrier;
import org.jing.core.lang.annotation.SerializableField;
import org.jing.core.lang.annotation.SerializableType;
import org.jing.core.thread.itf.BaseMultiplyThread;

/**
 * Description: <br>
 *
 * @author bks <br>
 * @since 2023-09-19 <br>
 */
@SuppressWarnings("WeakerAccess")
@SerializableType
public class ThreadSubConfiguration extends BaseConfiguration {
    @SerializableField(value = "impl", required = true)
    private Class<? extends BaseMultiplyThread> threadImpl;

    @SerializableField(value = "wait", defaultValue = "true")
    private boolean wait;

    @SerializableField("config")
    private Carrier configC;

    public Class<? extends BaseMultiplyThread> getThreadImpl() {
        return threadImpl;
    }

    public boolean canWait() {
        return wait;
    }

    public Carrier getConfigC() {
        return configC;
    }
}
